const {
  AUTH_TKOEN: authToken,
  FEISHU_TABLE_MATERIAL: material,
  FEISHU_TABLE_USER: user,
  FEISHU_TABLE_AGENDA: agenda
} = process.env;

export enum FeiShuTable {
  Material = "material",
  Agenda = "agenda",
  User = "user",
  Empty = "",
}

const FeiShuTableId = {
  [FeiShuTable.Material]: material,
  [FeiShuTable.Agenda]: agenda,
  [FeiShuTable.User]: user,
  [FeiShuTable.Empty]: "", 
};

export const getTableId = (table: FeiShuTable) => FeiShuTableId[table] ?? "";
